<template>
 <div>
   <childCom v-model="parentValue" :value="parentValue">
   </childCom>
   {{parentValue}}
 </div>
</template>

<script>
import childCom from "@/components/modelBind/childCom";
export default {
  name: "modelBind",
  components:{childCom},
  watch:{
    parentValue:{
      handler(newV,oldV){
        console.log("父组件parentValue:",this.parentValue)
      }
    }
  },
  data(){
    return{
      parentValue:'我是父组件的值'
    }
  }
}
</script>s

<style scoped>

</style>